import requests

api_url = 'https://api.github.com/search/repositories?q=spider'
req = requests.get(api_url)
print('状态码：', req.status_code)
req_dic = req.json()
print(req_dic.keys())
pymysql.connect(host='localhost',user='root',password='ywh.2004430',port=3306)

